const packageJson = require('../package.json');
const token ='eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiYXBpIl0sImNvcnBJZCI6bnVsbCwidXNlcl9pZCI6ImZmODA4MDgxOTVlMTJkZWEwMTk1ZTE0MWI5OGIwMjUzIiwidXNlcl9uYW1lIjoiMTEwIiwic2NvcGUiOlsicmVhZCJdLCJtb2JpbGUiOmZhbHNlLCJpc0FkbWluIjp0cnVlLCJleHAiOjE3NjEyMDQ1MDIsImlzQXBwQWRtaW4iOmZhbHNlLCJhdXRob3JpdGllcyI6WyJVU0VSIiwiQVVUSF9TWVNURU1fTUFOQUdFIl0sImp0aSI6ImExMjIyYzdkLTQyOTAtNGMzNy1hMDQzLTEyODkyMGM0MjkyZiIsImNsaWVudF9pZCI6ImFwaSJ9.GieblNdaggngQDNpbvk5pYf_kWFPZAPOcwOQLMaNyHg5rrAfqbP4NuoBctKSr84ryRx6lzZixwNgUzrA3mGLo2mY-sEubpoZw0Ak9gXRw4PCM79wyiEZe9Gmyf6QSGYkwyYbu1JGdRjlxPuqQLu38at9hNSAgLHYk3KFPzvugZI';

const setDevToken = () => {
    if(process.env.NODE_ENV === 'development') {
        localStorage.setItem('token', token);
    }
}
console.log(`%cfrontendVersion:${packageJson.version}`, 'color: green;font-size: 16px');

//设置开发环境token
module.exports = setDevToken;
